package top.hzy520.admin.common.constants;

/**
 * @Author: HouZeYu
 * @Description:
 * @Date: Created in 21:45 2018/5/13
 */
public class Constants {
    /** 登录名称是否唯一的返回结果码 */
    public final static String USER_NAME_UNIQUE = "0";
    public final static String USER_NAME_NOT_UNIQUE = "1";

    /** 手机号码是否唯一的返回结果 */
    public final static String USER_PHONE_UNIQUE = "0";
    public final static String USER_PHONE_NOT_UNIQUE = "1";

    /** e-mail 是否唯一的返回结果 */
    public final static String USER_EMAIL_UNIQUE = "0";
    public final static String USER_EMAIL_NOT_UNIQUE = "1";

    /**redis命名空间**/
    public static final String CACHE_COURSE_CATEGORY="course:category";

    public static final String CACHE_COURSE_DETAIL="course:detail";

    public static final String CACHE_COURSE_ALL="course:all";

    public static final String CACHE_SUPERIOR_COURSE_ALL="superior:all";

    public static final String CACHE_USER_ALL="user:all";

    public static final String CACHE_COURSE_CATEGORY_DETAIL = "course:category:detail";

    public static final String CACHE_COURSE_CATEGORY_ALL = "course:category:all";

    public static final String CACHE_CATEGORY_SUBCLASSIFY_ALL = "category:subclassify:all";

    public static final String CACHE_CATEGORY_SUBCLASSIFY = "category:subclassify";

    public static final String CACHE_CATEGORY_BY_PARENTCODE_SUBCLASSIFY = "category:subclassify:parentcode";


    /**  自定义状态码 **/
    public static final int RESP_STATUS_OK = 200;

    public static final int RESP_STATUS_NOAUTH = 401;

    public static final int RESP_STATUS_INTERNAL_ERROR = 500;

    public static final int RESP_STATUS_BADREQUEST = 400;
    /***自定义状态码 */

    /***七牛keys start****/
    public static final String QINIU_ACCESS_KEY="YCrNjQV4zOF75-xk4zx8FabxApIp7j84b6_fn3LG";

    public static final String QINIU_SECRET_KEY="Zzo41EyIuFDCCbE4MWreoVcwdNQt84NnHkCdDUz4";

    public static final String QINIU_HEAD_IMG_BUCKET_NAME="bike";

    public static final String QINIU_HEAD_IMG_BUCKET_URL="oyiqboguf.bkt.clouddn.com";

    /***七牛keys end****/
    /**秒滴SMS start**/
    public static final String MDSMS_ACCOUNT_SID = "b8aa0eae68ae4ae3aecb25b89f8f6023";

    public static final String MDSMS_AUTH_TOKEN = "6ea584fcbca24172b3f77591927e6bf7";

    public static final String MDSMS_REST_URL = "https://api.miaodiyun.com/20150822";

    public static final String MDSMS_VERCODE_TPLID = "74139139";

    /**秒滴SMS end**/
    /**用户token**/
    public static final String REQUEST_TOKEN_HEADER="x-auth-token";
    /***用户session**/
    public static final String REQUEST_USER_SESSION="current-user";
    /***用户版本**/
    public static final String REQUEST_VESSION_KEY="version";

    /**用户注册分布式锁路径**/
    public static final String USER_SMSREGISTER_DISTRIBUTE_LOCK_PATH= "/user_reg_mobile";

    public static final String USER_EMAILREGISTER_DISTRIBUTE_LOCK_PATH= "/user_reg_email";
    public static final String SHOPPING_CART_COOKIE_NAME = "shopping_cart";
    public static final String ORDER_PAY = "支付";
    /**订单已经关闭***/
    public static final Byte ORDER_CLOSE = 2;  //订单超时
    public static final Byte ORDER_NOTPAY =1; //订单未支付
    public static final Byte ORDER_PAYED =3;  //订单支付
    public static final String DEFAULT_NAME = "在线学习小学徒";
    public static final String DEFAULT_HEADER_IMG = "//img2.mukewang.com/5333a1920001d36402200220-100-100.jpg";
    public static final Integer COURSE_STUDYING_STATUS = 0;
    public static final Integer COURSE_STUDYED_STATUS = 1;
}
